
# 多继承

class Car:
    def run(self, speed):
        print('汽车以', speed, 'km/h的速度行驶！')

class Plane:
    def fly(self, height):
        print('飞机以', height, '米的高度飞行')

class PlaneCar(Car, Plane):
    '''飞行汽车,继承自汽车和飞机类'''

p1 = PlaneCar()
p1.run(200)
p1.fly(10000)